/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kleintjes.behavioral.command_pattern.model;

import com.kleintjes.behavioral.command_pattern.Command;

/**
 *
 * @author Hughan.Kleintjes.hughanK@gmail.com
 */
public class MealInvoker {
    Command command;
    
    public MealInvoker(Command command) {
        this.command = command;
    }
    
    public void setCommand(Command command) {
        this.command = command;
    }
    
    public void invoke() {
        command.execute();
    }
    
}
